﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using AntiObesity.Base;
using AntiObesity.Base.Managers;

namespace AntiObesity.Services
{
    [WebService(Namespace = "http://antiobesity-project.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    public class FoodServices : System.Web.Services.WebService
    {
        [WebMethod]
        public List<Food> GetFoodsWithSimilarNames(string partOfName)
        {
            return FoodManager.FindByNameSimilarity(partOfName);
        }

        //[WebMethod]
        //public List<Food> GetPopularFoods(Guid categoryId)
        //{
        //    return FoodManager.GetPopularFoods(categoryId);
        //}
    }
}
